
     <foreach name="res" item="v">
     <tr>
         <td>{$v.id}</td>
         <td>{$v.name}</td>
         <td>{$v.class}</td>
        <td>{$v.sex}</td>
         <td>{$v.age}</td>
         <td><a href="{:U('Index/update',array('id'=>$v['id']))}">编辑</a>/
         <a href="#" class="dd">删除</a></td>
     </tr>
     </foreach>  